# -*- coding:utf8 -*-
from sklearn import svm, datasets
from sklearn.model_selection import GridSearchCV

iris = datasets.load_iris()
params = {"kernel": ("linear", "rbf"), "C": [1, 10]}
svc = svm.SVC()
clf = GridSearchCV(svc, params)
clf.fit(iris.data, iris.target)
print(clf.cv_results_.keys())
print(clf.best_params_)
print(clf.best_score_)